package com.nd.android.u.ui.activity.recent_contact;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.TextView;

import com.common.StarAppConst;
import com.common.utils.StarAppUtils;
import com.nd.android.u.ui.ChatEntry;
import com.nd.android.u.ui.R;

/**
 * 没有未读消息的界面
 * 
 * <br>
 * Created 2014-9-9 下午4:00:39
 * 
 * @version
 * @author HuangYK
 * 
 * @see
 */
public class NoContactRecordFragment extends Fragment {

	public static NoContactRecordFragment newInstance() {
		return new NoContactRecordFragment();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View rootView = inflater.inflate(R.layout.no_contact_record, container,
				false);

		StarAppUtils.setViewTypeFace(
				(TextView) rootView.findViewById(R.id.tvNoContactTip), false);

		StarAppUtils.setViewTypeFace(
				(TextView) rootView.findViewById(R.id.tv_search), false);

		(rootView.findViewById(R.id.rl_search_friend))
				.setOnClickListener(new OnClickListener() {

					@Override
					public void onClick(View v) {
						ChatEntry.INSTANCE.chatCallOtherModel_UI
								.gotoSearchUserActivity(getActivity());
					}
				});

		return rootView;
	}
}
